package com.ruoyi.business.mapper;

import java.util.List;
import com.ruoyi.business.domain.BusNeighborhoodLedger;
import com.ruoyi.business.domain.vo.BusNeighborhoodVo;

/**
 * 小区台账Mapper接口
 *
 * @author ling
 * @date 2024-07-12
 */
public interface BusNeighborhoodLedgerMapper
{
    /**
     * 查询小区台账
     *
     * @param id 小区台账主键
     * @return 小区台账
     */
    public BusNeighborhoodLedger selectBusNeighborhoodLedgerById(Long id);

    /**
     * 查询小区台账列表
     *
     * @param busNeighborhoodLedger 小区台账
     * @return 小区台账集合
     */
    public List<BusNeighborhoodLedger> selectBusNeighborhoodLedgerList(BusNeighborhoodLedger busNeighborhoodLedger);


    /**
     * 功能描述：添加了缸与闸数量、调压设施数量
     *
     * @param busNeighborhoodLedger
     * @return {@link List }<{@link BusNeighborhoodLedger }>
     * @author ling
     * @date 2024/07/17 10:52
     */
    public List<BusNeighborhoodVo> selectBusNeighborhoodLedgerListAB(BusNeighborhoodLedger busNeighborhoodLedger);

    /**
     * 新增小区台账
     *
     * @param busNeighborhoodLedger 小区台账
     * @return 结果
     */
    public int insertBusNeighborhoodLedger(BusNeighborhoodLedger busNeighborhoodLedger);

    /**
     * 修改小区台账
     *
     * @param busNeighborhoodLedger 小区台账
     * @return 结果
     */
    public int updateBusNeighborhoodLedger(BusNeighborhoodLedger busNeighborhoodLedger);

    /**
     * 删除小区台账
     *
     * @param id 小区台账主键
     * @return 结果
     */
    public int deleteBusNeighborhoodLedgerById(Long id);

    /**
     * 批量删除小区台账
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteBusNeighborhoodLedgerByIds(Long[] ids);

    /**
     * 功能描述：获取num
     *
     * @return {@link Integer }
     * @author ling
     * @date 2024/08/22 15:28
     */
    Integer getCount();

    /**
     * 功能描述：批量更新小区台账
     *
     * @param busNeighborhoodLedgerList
     * @return {@link Integer }
     * @author ling
     * @date 2024/08/22 15:28
     */
    Integer updateBusNeighborhoodLedgers(List<BusNeighborhoodLedger> busNeighborhoodLedgerList);
}
